package com.pioneer.web.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 *
 * @TableName sto_decrease_body
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="sto_decrease_body")
@Data
public class StoDecBody extends BaseEntity {
    /**
     * 子表ID
     */
    @TableId(type = IdType.AUTO)
    private Long decreaseBodyId;

    /**
     * 主表ID
     */
    private Long decreaseId;

    /**
     * 图书ID
     */
    private Long bookId;

    /**
     * 数量
     */
    private BigDecimal number;
}
